package com.demo2do.fms.queue.entity;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 *
 * @author Ark
 *
 */
public class VehicleBind {

    /** 绑定类型 */
    private String type;
    
    /** 牵引车id */
    private Long tractorId; 
    
    /** 挂车id */
    private Long trailerId;
    
    /** 操作人 */
    private Long operator;
    
    /** 最后更新时间 */
    private Date operateTime;
    
    /**
     * The default constructor
     */
    public VehicleBind() {
    }

    /**
     * @return
     */
    @JsonIgnore
    public boolean isBind() {
        return StringUtils.equals("bind", type);
    }
    
    /**
     * @return
     */
    public String getType() {
        return type;
    }
    
    /**
     * @return the tractorId
     */
    public Long getTractorId() {
        return tractorId;
    }

    /**
     * @return the trailerId
     */
    public Long getTrailerId() {
        return trailerId;
    }

    /**
     * @return
     */
    public Long getOperator() {
        return operator;
    }

    /**
     * @return
     */
    public Date getOperateTime() {
        return operateTime;
    }

    /**
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }
    
    /**
     * @param tractorId the tractorId to set
     */
    public void setTractorId(Long tractorId) {
        this.tractorId = tractorId;
    }

    /**
     * @param trailerId the trailerId to set
     */
    public void setTrailerId(Long trailerId) {
        this.trailerId = trailerId;
    }

    /**
     * @param operator
     */
    public void setOperator(Long operator) {
        this.operator = operator;
    }

    /**
     * @param operateTime
     */
    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }
    
}
